﻿<html>
<head>
<title>!!!</title>
<script language="javascript" src="js/script.js" type="text/javascript"></script>
<script type="text/javascript">
function UR_Start() 
{
	UR_Nu = new Date;
	UR_Indhold = showFilled(UR_Nu.getHours()) + ":" + showFilled(UR_Nu.getMinutes()) + ":" + showFilled(UR_Nu.getSeconds());
	document.getElementById("ur").innerHTML = UR_Indhold;
	if(UR_Nu.getSeconds()==0){
		
		var parametros = '';	
		enviarForm('script/atualizaResultado.php', parametros, 'divResultado');
		setTimeout(showHide, 8000);
		
	}
	setTimeout("UR_Start()",1000);
	//setInterval("showHide()",8000);
	
}


function showFilled(Value) {
	return (Value > 9) ? "" + Value : "0" + Value;
}

function showHide() {
	
	document.getElementById('divResultado').innerHTML = '';	
	
	
}


</script>
<style type="text/css">
	* { 
		margin:0; padding:0; 
	}
	#box {
		background-color:#999; height:182px; left:50%; margin:-91px 0 0 -300px; position:absolute; top:50%; width:600px;
	}
	.resultado {
		position:absolute; width:100%;
	}
</style>
</head>
<body onLoad="UR_Start()"> 
	<div id="divResultado" class="resultado"></div>
	<div id="box">
    	<span id="ur" style="font-size:152px; font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;"></span>
	</div>
</body>
</html> 